<?php
if(!ROOT){
	exit('Access denied');
}
#数据库删除表
$query=array();
$query[]="DROP TABLE ".DB_PREFIX."page;";
$query[]="DROP TABLE ".DB_PREFIX."page_comment;";
#执行命令
if(count($query)>0){
	foreach($query as $sql){
		$this->db->query($sql);
	}
}
#删除配置项
$this->db->delete(DB_PREFIX."config","config_type='page'");
$template_admin=array(
	'page.config',
	'page.info',
	'page.list',
	'page.comment.info',
	'page.comment.list'
);
foreach($template_admin as $v){
	@unlink(ROOT."/core/themes/admin/".$v.".php");
}
$template_front=array(
	'page.comment',
	'page.template'
);
foreach($template_front as $v){
	@unlink(ROOT."/core/themes/".read_cache('default_theme')."/".$v.".php");
}